package com.myworld.exception;

import com.myworld.vo.response.ResultCode;

public class MyException extends RuntimeException{
    private ResultCode resultCode;

    public MyException(ResultCode resultCode){
        super("错误代码:"+ resultCode.code()+"错误信息:"+resultCode.message());
        this.resultCode=resultCode;
    }

    public ResultCode getResultCode(){
        return this.resultCode;
    }
}
